package de.hwr.sudokuspielehr.ui.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import de.hwr.sudokuspielehr.ui.UserInterface;

public class GenerateMenuButtonListener implements ActionListener {

	/**
	 * UserInterface instance.
	 */
	private UserInterface ui;

	/**
	 * Constructor of GenerateMenuButtonListener.
	 * 
	 * @param pUi
	 *            UserInterface instance
	 */
	public GenerateMenuButtonListener(UserInterface pUi) {
		ui = pUi;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		ui.switchTo(UserInterface.PANEL_GENERATEMENUPANEL);
	}
}
